package com.dhsc.local.dao.impl.ywjk.jzcl;

import com.dhsc.domain.jkzx.ywjk.jzcl.YcmxlsVo;
import com.dhsc.local.dao.ywjk.jzcl.IYcmxDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: YcmxlsDaoImpl
 * @Description: 当前异常明细
 * @date: 2023/8/29 14:55
 * @author: gx
 */
@Repository("ycmxdao")
public class YcmxDaoImpl implements IYcmxDao {

	@Autowired
	private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<YcmxlsVo> queryYcmx(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.selectList("YcmxMapper.queryYcmx",ycmxlsVo);
    }

    @Override
    public int updateYcmx(YcmxlsVo ycmxlsVo) {
        return localSqlSessionTemplate.update("YcmxMapper.updateYcmx",ycmxlsVo);
    }

    @Override
    public List<YcmxlsVo> queryClr() {
        return localSqlSessionTemplate.selectList("YcmxMapper.queryClr");
    }

}
